package com.hsgene.order.service.api;

import com.hsgene.common.util.result.ApiResult;
import com.hsgene.order.service.api.impl.GeneticUserServiceImpl;
import com.hsgene.user.dto.user.GeneticTestingUserDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 获取用户信息
 *
 * @author wangbing
 * @version 1.0, 2018/10/17
 */
@FeignClient(value = "ms-mod-user", path = "/v1.0/genetic/testing/user", fallback = GeneticUserServiceImpl.class)
public interface GeneticUserService {

    /**
     * 获取用户信息
     *
     * @param userId 用户id
     * @return 用户信息
     */
    @GetMapping("{userId}")
    ApiResult<GeneticTestingUserDto> getUserInfo(@PathVariable("userId") String userId);
}
